import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { KanbanComponent } from './kanban.component';
import { KanbanMenuComponent } from './kanban-menu/kanban-menu.component';
import { CanActivateGuard } from 'src/app/@core/services/can-load-service.guard';

const routes: Routes = [
  {
    path: '',
    component: KanbanComponent,
    children: [
      {
        path: 'kanban-menu',
        component: KanbanMenuComponent,
        canActivate: [CanActivateGuard]
      },

    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class KanbanRoutingModule { }
